/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package uno;

import java.io.Console;

/**
 *
 * @author abelitro
 */
public class MyConsole {
    
    public static void main(String[] args){
        Console console = System.console();
        String name="";
        if(console != null ){
            console.printf("cual es tu nombre???  \n");
            name = console.readLine();
            console.printf("Hola "+name+": \n");
        }else{
           System.out.println("No hay consola seleccionada");
        }
    }
    
}
